<template>
<p :style="{color:activeColor,fontSize:fontSize+'px'}">Style绑定1</p>
<p :style="styleobject">Style绑定2</p>
<p :style="[styleobject]">Style绑定3</p>
</template>

<script>

export default{
    data(){
        return{
            activeColor:"green",
            fontSize:30,
            styleobject:{
                color:"red",
                fontSize:"30px"
            }
        }
    }
}

</script>